package com.woniu.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Positive;

/**
 * 上架的form数据
 */
@Data
@ApiModel("上架的form数据")
public class ListingGoodsForm {
    /*
    商品id
     */
    @NotNull(message = "商品id不能为空")
    @Positive(message = "商品id必须是正整数")
    @ApiModelProperty("商品id")
    private Integer id;
    /*
    商品数量
     */
    @NotNull(message = "商品数量不能为空")
    @Positive(message = "商品数量必须是正整数")
    @ApiModelProperty("商品数量")
    private Integer number;
}
